home *** CD-ROM | disk | FTP | other *** search
-
-
-
- sssscccchhhheeeedddd____ggggeeeettttsssscccchhhheeeedddduuuulllleeeerrrr((((2222)))) sssscccchhhheeeedddd____ggggeeeettttsssscccchhhheeeedddduuuulllleeeerrrr((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- _ssss_cccc_hhhh_eeee_dddd______gggg_eeee_tttt_ssss_cccc_hhhh_eeee_dddd_uuuu_llll_eeee_rrrr - get the scheduling policy of a process
-
- CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<sssscccchhhheeeedddd....hhhh>>>>
- _iiii_nnnn_tttt _ssss_cccc_hhhh_eeee_dddd______gggg_eeee_tttt_ssss_cccc_hhhh_eeee_dddd_uuuu_llll_eeee_rrrr _((((_pppp_iiii_dddd______tttt _p_i_d_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _ssss_cccc_hhhh_eeee_dddd______gggg_eeee_tttt_ssss_cccc_hhhh_eeee_dddd_uuuu_llll_eeee_rrrr system call is used to get the scheduling policy
- of the process specified by _p_i_d. If _p_i_d is set to zero, then the
- scheduling policy of the caller is returned.
-
- A process may obtain the scheduling policy of itself and any process
- sharing the same real user ID [see _gggg_eeee_tttt_uuuu_iiii_dddd(2)]. To obtain the scheduling
- policy of an unrelated process, the calling process must have the
- CCCCAAAAPPPP____SSSSCCCCHHHHEEEEDDDD____MMMMGGGGTTTT capability [see _c_a_p_a_b_i_l_i_t_y].
-
- If _p_i_d refers to a POSIX thread process [see _pppp_tttt_hhhh_rrrr_eeee_aaaa_dddd_ssss(3P)] then this call
- retrieves the scheduling policy that is shared by process scope and bound
- scope threads.
-
- _ssss_cccc_hhhh_eeee_dddd______gggg_eeee_tttt_ssss_cccc_hhhh_eeee_dddd_uuuu_llll_eeee_rrrr will fail if one or more of the following are true:
-
- [EINVAL] The process specified by _p_i_d is not executing with a
- scheduling policy.
-
- [EPERM] The calling process attempted to obtain the scheduling
- policy of an unrelated process and the caller does not
- have the CCCCAAAAPPPP____SSSSCCCCHHHHEEEEDDDD____MMMMGGGGTTTT capability.
-
- [ESRCH] The process specified by _p_i_d does not exist.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- capability(4), sched_setparam(2), sched_getparam(2),
- sched_setscheduler(2), sched_yield(2), sched_get_priority_max(2),
- sched_get_priority_min(2), sched_rr_get_interval(2), sproc(2), fork(2),
- getuid(2), pthreads(5)
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, one of the following scheduling policies is
- returned: SCHED_FIFO, SCHED_RR, SCHED_TS. These scheduling policies are
- described in _ssss_cccc_hhhh_eeee_dddd______ssss_eeee_tttt_ssss_cccc_hhhh_eeee_dddd_uuuu_llll_eeee_rrrr(2).
-
- Otherwise, a value of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to indicate the
- error.
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-